function getById(id,targetType) {
 
	var $parent = targetType == "dialog" ? $.pdialog.getCurrent() : navTab.getCurrentPanel();
	return $("#"+id,$parent);
	
}